﻿<cffunction name="md5Hash" access="public" hint="hash of md5">
	
	<cfargument name="string" required="true" type="string">
	<cfargument name="lower" required="false" default="false" type="boolean"> 
	
	<cfset md5 = Hash(arguments.string & application.encryptionSalt, "MD5")>
	
	<cfif arguments.lower>
		<cfset md5 = LCase(md5)>
	</cfif> 
	
	<cfreturn md5>
	 
</cffunction>